home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Dev / Oberon / source / amiga / Audio.mod < prev    next >
Text File  |  1995-06-29  |  2KB  |  80 lines

  1. (***************************************************************************
  2.  
  3.      $RCSfile: Audio.mod $
  4.   Description: Interface to audio.device
  5.  
  6.    Created by: fjc (Frank Copeland)
  7.     $Revision: 3.8 $
  8.       $Author: fjc $
  9.         $Date: 1995/06/04 23:13:14 $
  10.  
  11.   $VER: audio.h 36.3 (29.8.90)
  12.   Includes Release 40.15
  13.  
  14.   (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  15.       All Rights Reserved
  16.  
  17.   Oberon-A interface Copyright © 1994-1995, Frank Copeland.
  18.   This file is part of the Oberon-A Interface.
  19.   See Oberon-A.doc for conditions of use and distribution.
  20.  
  21. ***************************************************************************)
  22.  
  23. <* STANDARD- *>
  24.  
  25. MODULE [2] Audio;
  26.  
  27. IMPORT e := Exec;
  28.  
  29.  
  30. (*
  31. **
  32. **      audio.device include file
  33. **
  34. *)
  35.  
  36. CONST
  37.  
  38.   audioName            * = "audio.device";
  39.  
  40.   hardChannels         * = 4;
  41.  
  42.   allocMinPrec         * = -128;
  43.   allocMaxPrec         * = 127;
  44.  
  45.   free              * = e.nonstd+0;
  46.   setPrec           * = e.nonstd+1;
  47.   finish            * = e.nonstd+2;
  48.   perVol            * = e.nonstd+3;
  49.   lock              * = e.nonstd+4;
  50.   waitCycle         * = e.nonstd+5;
  51.   allocate          * = 32;
  52.  
  53.   pervol            * = 4;
  54.   syncCycle         * = 5;
  55.   noWait            * = 6;
  56.   writeMessage      * = 7;
  57.  
  58.   noAllocation    * = -10;
  59.   allocFailed     * = -11;
  60.   channelStolen   * = -12;
  61.  
  62. TYPE
  63.  
  64.   IOAudioPtr * = POINTER TO IOAudio;
  65.   IOAudio * = RECORD (e.IORequestBase)
  66.     request *   : e.IORequest;
  67.     allocKey *  : INTEGER;
  68.     data *      : e.APTR;
  69.     length *    : e.ULONG;
  70.     period *    : e.UWORD;
  71.     volume *    : e.UWORD;
  72.     cycles *    : e.UWORD;
  73.     writeMsg *  : e.Message;
  74.   END; (* IOAudio *)
  75.  
  76.  
  77. END Audio.
  78.  
  79.  
  80.